package 并发编程14.collections;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author idea
 * @data 2019/2/4
 */
public class Demo {

    public static void main(String[] args) {
        ConcurrentHashMap<String,Integer> concurrentHashMap=new ConcurrentHashMap<>();
        for (int i=0;i<100;i++) {
            concurrentHashMap.put(i+"",i);
        }

        System.out.println(concurrentHashMap.get(1+""));
    }
}
